package com.zs.admin.validate.wisdbook;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;

@Data
@ApiModel("智书创建参数")
public class WisdbookCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "书名")
    private String name;

    @NotNull(message = "grade参数缺失")
    @ApiModelProperty(value = "年级")
    private Integer grade;

    @NotNull(message = "subject参数缺失")
    @ApiModelProperty(value = "科目")
    private Integer subject;

    @NotNull(message = "section参数缺失")
    @ApiModelProperty(value = "学段")
    private Integer section;

    @NotNull(message = "edition参数缺失")
    @ApiModelProperty(value = "教材版本")
    private Integer edition;

    @NotNull(message = "volume参数缺失")
    @ApiModelProperty(value = "分册：0默认 1上册 2下册 3全一册")
    private Integer volume;


    @ApiModelProperty(value = "pdf存放地址")
    private String pdfUrl;

    @ApiModelProperty(value = "封面图地址")
    private String cover;

    @ApiModelProperty(value = "pid")
    private Integer pid;

}
